﻿<%@ Page Language="C#" AutoEventWireup="True" Inherits="AddData" Codebehind="AddData.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body background="https://minisaas.blob.core.windows.net/https://minisaas.blob.core.windows.net/img/bg.jpg">
    <form id="frmAddData" runat="server">
    <p>
&nbsp;<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/ControlPanel.aspx">Return to Control Panel</asp:HyperLink>
    </p>
    <p>
        Here you may 
        add data into database based on the definition of Object.
    </p>
    <div>
    
        Objects:&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="DropDownList_Object" runat="server" AutoPostBack="True"
            onselectedindexchanged="DropDownList_Object_SelectedIndexChanged" 
            Height="16px" Width="127px">
        </asp:DropDownList>
        <br />
        Attributes:
        <asp:DropDownList ID="DropDownList_Attributes" runat="server" AutoPostBack="True"
            onselectedindexchanged="DropDownList_Attributes_SelectedIndexChanged" 
            Height="16px" Width="127px">
        </asp:DropDownList>
        <br />
        Value:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TB_attrValue" runat="server" Width="122px"></asp:TextBox>
        <asp:Label ID="Label_attributes" runat="server"></asp:Label>
        <br />
        <asp:Button ID="BT_ADD_Data" runat="server" onclick="BT_ADD_Data_Click" 
            Text="ADD" />
        <br />
        <asp:GridView ID="GridView1" runat="server" EnableModelValidation="True" 
            AutoGenerateColumns="False" Width="201px">
            <Columns>
                <asp:BoundField DataField="coldata" HeaderText="Value">
                <HeaderStyle BackColor="#0066FF" />
                </asp:BoundField>
                <asp:BoundField DataField="columnID" HeaderText="Attributes ID">
                <HeaderStyle BackColor="#0066FF" />
                </asp:BoundField>
            </Columns>
            <EditRowStyle BackColor="#0033CC" />
        </asp:GridView>
        <asp:XmlDataSource ID="XmlDataSource1" runat="server"></asp:XmlDataSource>
        <br />
        Comments:<asp:TextBox ID="TB_dataComments" runat="server" Width="120px"></asp:TextBox>
        <br />
        <asp:Button ID="FINISH_Data" runat="server" onclick="FINISH_Data_Click" 
            Text="FINISH" />
        <br />
    
    </div>
    <asp:Label ID="lblErr" runat="server" ForeColor="Red"></asp:Label>
    &nbsp;<br />
    <br />
    </form>
</body>
</html>
